package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import yf.mall.entity.SecCodeEntity;
import yf.mall.vo.SecCodeVo;

                            
/**
 * 防伪码实体
 * 表名 sec_code
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Fri Jul 28 15:20:42 CST 2023
 */
@Data
public class SecCodeDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //编码
            @ExcelProperty("编码")
            private String code;
        
                        //名字
            @ExcelProperty("名字")
            private String name;
        
                        //用户编码
            @ExcelProperty("用户编码")
            private String userCode;
        
                        //查询次数
            @ExcelProperty("查询次数")
            private Integer num;
        
                        //绑定时间
            @ExcelProperty("绑定时间")
            private Date time;
        
                        //上次时间
            @ExcelProperty("上次时间")
            private Date lastTime;
        
    
    public SecCodeDown() {

    }

    public SecCodeDown(SecCodeVo vo) {
        SecCodeEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setCode(entity.getCode());
            
                                    this.setName(entity.getName());
            
                                    this.setUserCode(entity.getUserCode());
            
                                    this.setNum(entity.getNum());
            
                                    this.setTime(entity.getTime());
            
                                    this.setLastTime(entity.getLastTime());
            
            }


}
